package com.example.design.template;

public abstract class LessonPreparation {

    public void prepare() {
        this.prepareTeachingPlan();
        this.preparePPT();
        this.prepareProblem();

        if (isPrepareHomeWork()) {
            this.prepareHomeWork();
        }
    }

    public void preparePPT() {
        System.out.println("准备PPT课件");
    }

    public void prepareTeachingPlan() {
        System.out.println("正在准备教案");
    }

    public void prepareProblem() {
        System.out.println("正在准备上课提问问题");
    }

    public boolean isPrepareHomeWork() {
        return false;
    }

    public abstract void prepareHomeWork();
}
